package com.geektime.hello.event;

import com.geektime.hello.annotation.Log;
import org.springframework.context.ApplicationListener;

/**
 * @Author: DRevelation
 * @Date: 2021/6/1 17:59
 */
public class LogListener implements ApplicationListener<LogEvent> {
    @Override
    public void onApplicationEvent(LogEvent event) {
        Log log = (Log)event.getSource();
        System.out.println("log.title() = " + log.title());
    }
}
